package com.kma.summer2012.dao;

import com.kma.summer2012.model.CrumbsCatalogOfTools;

import java.sql.SQLException;
import java.util.Collection;
import java.util.List;

public interface CrumbsCatalogOfToolsDAO extends DAO<CrumbsCatalogOfTools> {
    public void add(CrumbsCatalogOfTools o) throws SQLException;

    public void update(CrumbsCatalogOfTools o) throws SQLException;

    public CrumbsCatalogOfTools getById(int id) throws SQLException;

    public CrumbsCatalogOfTools getByName(String name) throws SQLException;

    public Collection<CrumbsCatalogOfTools> getAll() throws SQLException;

    public void delete(CrumbsCatalogOfTools o) throws SQLException;

    public void deleteAll(List<CrumbsCatalogOfTools> tools) throws SQLException;
}
